package com.atguigu.java.pojo;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.util.List;

/**
 * projectName: day21_exam_system_part
 *
 * @author: 赵伟风
 * description:
 */
@TableName(value = "t_user")
@Data
public class User {
    @TableId(type = IdType.AUTO)
    private Integer id;
    @TableField("u_name")
    private String name;
    private Integer age;
    private String email;

    //@TableLogic //默认 0 未删除 1已删除
    private Integer isDeleted;

//    //方案1：排除此列！
//    @TableField(exist = false)
//    private List<Address> addresses;
}
